﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Tools.Ribbon;
using UILibrary;

namespace OfficeInCloudWord2007
{
    public partial class OfficeInCloudRibbon : OfficeRibbon
    {
        public OfficeInCloudRibbon()
        {
            InitializeComponent();
        }

        private void OfficeInCloudRibbon_Load(object sender, RibbonUIEventArgs e)
        {

        }

        private void OfficeInCloudTrigger_Click(object sender, RibbonControlEventArgs e)
        {
            foreach (Microsoft.Office.Tools.CustomTaskPane m_CustomTaskPane in Globals.ThisAddIn.CustomTaskPanes)
            {
                if (m_CustomTaskPane.Title == "Office in Cloud")
                {
                    m_CustomTaskPane.Visible = true;
                }
            }
           // int i = 100;
        }

        private void button1_Click(object sender, RibbonControlEventArgs e)
        {
            AboutBox about = new AboutBox();
            about.ShowDialog(); 
        }
    }
}
